<?php

namespace App\Models\System;

use Illuminate\Database\Eloquent\Model;

class DicGroup extends Model
{
    protected $table = 'system_dic_group';
    protected $fillable = [
        'parent_id', 'name', 'code'
    ];

    protected function options()
    {
        return $this->hasMany(Dic::class, 'group_id', 'id');
    }
}
